package com.liushao.service;

import com.liushao.dao.IUserDao;
import com.liushao.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: untitled
 * @ClassName UserService
 * @description:  <bean id="userService" class="com.liushao.service.UserService" />
 * @author: 刘庆东
 * @create: 2024−11-28 09:17
 * @Version 1.0
 **/
@Service
public class UserService {

    @Autowired
//    @Qualifier(value = "userDao")
    //@Resource
    private IUserDao userDao;

  /*  public UserService() {
        userDao = new UserDao();
    }*/

    public  void show(){
        System.out.println("如果先讲解注解，你们没有人愿意写xml了!!!");
        System.out.println("-------------------------");
        userDao.haha();
    }
}
